import Vue from "vue";
import Router from "vue-router";
import Home from "../components/pages/home.vue";
import Detail from "../components/pages/detail.vue";
import Develop from "../components/views/Develop.vue";
import Apply from "../components/views/Apply.vue";
import BigData from "../components/views/BigData.vue";
import AI from "../components/views/AI.vue";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      alias: "/home",
      name: "Home",
      component: Home
    },
    {
      path: "/detail",
      name: "Detail",
      component: Detail,
      children: [
        { path: "/detail/develop", name: "develop", component: Develop },
        { path: "/detail/apply", name: "apply", component: Apply },
        { path: "/detail/bigdata", name: "bigdata", component: BigData },
        { path: "/detail/ai", name: "ai", component: AI }
      ]
    }
  ]
});
